package com.zx.crowdfunding.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 第三方OSS对象存储服务接口属性配置类
 * @author 郑雪
 * @date 2022-01-01
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Component
@ConfigurationProperties(prefix = "aliyun.oss")
public class OSSProperties {

	/**
	 * 访问OSS的域名
	 */
	private String endPoint;
	
	/**
	 * 存储Object的存储空间名称
	 */
	private String bucketName;
	
	/**
	 * 存储空间访问域名
	 */
	private String bucketDomain;
	
	/**
	 * OSS的访问密钥AccessKeyId
	 */
	private String accessKeyId;
	
	/**
	 * OSS的访问密钥AccessKeySecret
	 */
	private String accessKeySecret;
	
}
